home *** CD-ROM | disk | FTP | other *** search
-
- ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
-
- AP2 automates the testing of audio device drivers using P2String. It first
- tests the default device driver's capabilities (if the option is checked) and
- then displays a list of test cases that the device supports. You can select
- several test cases to run. At the end of each test case, AP2 displays the
- status of that test case (success or failure).
-
- This Help file is composed of the following sections:
-
- o Introduction
- o How to use AP2
- o Data Structure
- o Test Case Output
- o The Description File
- o Error Messages
- o P2String
- o CDXA
-
-
- ΓòÉΓòÉΓòÉ 2. How to use AP2 ΓòÉΓòÉΓòÉ
-
- o Command Line Arguments
- o Testing
- o Device Capabilities
- o The Stop Button
- o The View Output Button
- o The DataPath Button
-
-
- ΓòÉΓòÉΓòÉ 2.1. Command Line Arguments ΓòÉΓòÉΓòÉ
-
- When running AP2, it can be invoked by simply typing AP2, or by using any of
- the following arguments:
-
- o SCRIPTS
- o /ALL
- o /AMPMIX
- o /CD
- o /CDXA
- o /MIDI
- o /VIDEO
- o /WAVE
- o /INTERACTIVE
- o /BATCH
- o /TEST
- o /NOTEST
- o /DATAPATH
- o /O
-
-
- ΓòÉΓòÉΓòÉ 2.1.1. SCRIPTS ΓòÉΓòÉΓòÉ
-
- Specifying The SCRIPTS Parameter will load into AP2 All scripts that match the
- filename given for SCRIPTS. Wildcards "*" and "?" are supported.
-
- If no switches are used to designate which files are to be selected, then all
- the loaded SCRIPTS will be selected. Otherwise, only those scripts matching
- the selection switches will be highlighted.
-
-
- ΓòÉΓòÉΓòÉ 2.1.2. /ALL ΓòÉΓòÉΓòÉ
-
- Specifying The /ALL Switch will select ALL scripts that are displayed. If the
- /BATCH switch is used in conjunction with /ALL, the selected scripts will be
- tested.
-
-
- ΓòÉΓòÉΓòÉ 2.1.3. /AMPMIX ΓòÉΓòÉΓòÉ
-
- Specifying The /AMPMIX Switch will select all AMPMIX scripts that are
- displayed. If the /BATCH switch is used in conjunction with /AMPMIX, the
- selected scripts will be tested.
-
- AMPMIX scripts are identified by the first letter of the filename beginning
- with "A".
-
-
- ΓòÉΓòÉΓòÉ 2.1.4. /CD ΓòÉΓòÉΓòÉ
-
- Specifying The /CD Switch will select all CD scripts that are displayed. If the
- /BATCH switch is used in conjunction with /CD, the selected scripts will be
- tested.
-
- CD scripts are identified by the first letter of the filename beginning with
- "C".
-
-
- ΓòÉΓòÉΓòÉ 2.1.5. /CDXA ΓòÉΓòÉΓòÉ
-
- Specifying The /CDXA Switch will select all CDXA scripts that are displayed. If
- the /BATCH switch is used in conjunction with /CDXA, the selected scripts will
- be tested.
-
- CDXA scripts are identified by the first letter of the filename beginning with
- "X".
-
-
- ΓòÉΓòÉΓòÉ 2.1.6. /MIDI ΓòÉΓòÉΓòÉ
-
- Specifying The /MIDI Switch will select all MIDI scripts that are displayed. If
- the /BATCH switch is used in conjunction with /MIDI, the selected scripts will
- be tested.
-
- MIDI scripts are identified by the first letter of the filename beginning with
- "M".
-
-
- ΓòÉΓòÉΓòÉ 2.1.7. /VIDEO ΓòÉΓòÉΓòÉ
-
- Specifying The /VIDEO Switch will select all VIDEO scripts that are displayed.
- If the /BATCH switch is used in conjunction with /VIDEO, the selected scripts
- will be tested.
-
- VIDEO scripts are identified by the first letter of the filename beginning with
- "V".
-
-
- ΓòÉΓòÉΓòÉ 2.1.8. /WAVE ΓòÉΓòÉΓòÉ
-
- Specifying The /WAVE Switch will select all WAVE scripts that are displayed. If
- the /BATCH switch is used in conjunction with /WAVE, the selected scripts will
- be tested.
-
- WAVE scripts are identified by the first letter of the filename beginning with
- "W".
-
-
- ΓòÉΓòÉΓòÉ 2.1.9. /INTERACTIVE ΓòÉΓòÉΓòÉ
-
- Specifying The /INTERACTIVE Switch will select all INTERACTIVE scripts that are
- displayed. If the /BATCH switch is used in conjunction with /INTERACTIVE, then
- the Interactive switch will be ignored.
-
- A file is designated as Interactive if the seventh character in its filename is
- an "I". For example: C1____I1.P2S. A file should be designated as interactive
- if it uses the @BREAK or the @CHECK P2String Directive.
-
-
- ΓòÉΓòÉΓòÉ 2.1.10. /BATCH ΓòÉΓòÉΓòÉ
-
- Specifying the /BATCH switch will run AP2 in a Batch Mode. When running AP2
- batch, no user interaction is required, nor is it necessary. The program will
- run, test all scripts, and automatically terminate when there is an error, or
- when all scripts have been tested.
-
- To run in Batch mode, it is required to specify which scripts are to be tested.
- Use any combination of the previous seven switches. Specifying /VIDEO /WAVE
- /BATCH will automatically test all video and wave scripts and terminate when
- done. Note: If none of the selection switches are specified, AP2 will return
- an error message specifying that no test cases were selected.
-
- All errors and failed scripts are logged to an OUTPUT file. The output file
- can be specified with the /O switch. If no output file is specified, AP2.OUT
- will be the default.
-
- In Batch Mode, testing Device Capabilities is defaulted to on, unless the
- /NOTEST switch is specified.
-
- During Batch execution, only those files not designated by their naming
- convention as INTERACTIVE are run. A file is designated as interactive if the
- seventh character in its filename is an "I". For example: C1____I1.P2S. A
- file should be designated as interactive if it uses the @BREAK or the @CHECK
- P2String Directive.
-
-
- ΓòÉΓòÉΓòÉ 2.1.11. /TEST ΓòÉΓòÉΓòÉ
-
- Specifying the /TEST switch will automatically test Device Capabilities at
- startup. This setting will also be saved. The next time AP2 is run, AP2 will
- test the capabilities, unless this option is turned off.
-
-
- ΓòÉΓòÉΓòÉ 2.1.12. /NOTEST ΓòÉΓòÉΓòÉ
-
- Specifying the /NOTEST switch will turn off automatically testing Device
- Capabilities at startup. This setting will also be saved. The next time AP2 is
- run, AP2 will not test the capabilities, unless this option is turned on.
-
-
- ΓòÉΓòÉΓòÉ 2.1.13. /DATAPATH ΓòÉΓòÉΓòÉ
-
- The /DATAPATH switch is used to specify the directory used for the datafiles.
- Specifying the DataPath switch is the same as pressing the DataPath button.
-
- To set the DataPath to "C:\DATA" use the following switch:
-
- /DATAPATH=C:\DATA
-
-
- ΓòÉΓòÉΓòÉ 2.1.14. /O ΓòÉΓòÉΓòÉ
-
- The /O switch is used to specify an OUTPUT FILE file for AP2. The output file
- will contain the output generated from all P2String scripts that FAIL. The
- output file will also report the number of scripts that SUCCEEDED and FAILED.
- When running in BATCH Mode, all errors will also be logged to this file.
-
- To set the Output File to "MYTEST.OUT" use the following switch:
-
- /OMYTEST.OUT
-
- Note: There is no spaces between the /O and the filename.
-
-
- ΓòÉΓòÉΓòÉ 2.2. Testing ΓòÉΓòÉΓòÉ
-
- You can select several test cases. You can also use the All or the None button
- to select all or none of the test cases, respectively.
-
- Press the Start Test button to start running the test cases you selected. As
- each test case terminates, the result of the test is displayed in the list box
- (success or failure).
-
-
- ΓòÉΓòÉΓòÉ 2.3. Device Capabilities ΓòÉΓòÉΓòÉ
-
- AP2 starts by testing the audio device driver's capabilities. According to the
- outcome of the device capability testing, only the supported test cases will be
- displayed. If you are familiar with P2String, you can view the file
- CAPABLTY.TXT, which lists the outcome of the device capability testing.
-
- You can disable device capability testing by unchecking the appropriate check
- box in the main window. In that case, all test cases will be displayed,
- regardless of whether the device supports their functions or not.
-
- Capabilities tested include:
-
- Wave Audio
-
- o Record
- o Save
- o Set the volume
- o PCM: (8 or 16 bits per sample -- 11k,22k, or 44k samples per second --
- mono or stereo -- play or record)
- o ADPCM: (16 bits per sample -- 11k,22k, or 44k samples per second -- mono
- or stereo -- play or record)
- o ALAW: (8 bits per sample -- 11k,22k, or 44k samples per second -- mono or
- stereo -- play or record)
- o MULAW: (8 bits per sample -- 11k,22k, or 44k samples per second -- mono or
- stereo -- play or record)
-
- MIDI
-
- o Play
- o Save
- o Set the volume
-
- CD Audio
-
- o Play
- o Eject
- o Lock the Eject button
- o Set the volume
- o Stream
-
- CDXA
-
- o Play
- o Eject
- o Lock the Eject button
- o Set the volume
-
- VIDEO
-
- o Play
- o Record
- o Set the volume
-
-
- ΓòÉΓòÉΓòÉ 2.4. The Stop button ΓòÉΓòÉΓòÉ
-
- The Stop button allows interruption of testing. This can be helpful if many
- files are highlighted and the Start Test button was pressed by mistake. It can
- also be used if the first in a series of related test cases fails. In that
- case, there might be no reason to run the remaining test cases.
-
- The viewing process can be interrupted in the same fashion.
-
-
- ΓòÉΓòÉΓòÉ 2.5. The View Output button ΓòÉΓòÉΓòÉ
-
- The View Output button allows the viewing of the *.OUT files that are generated
- from the execution of the *.P2S files.
-
- To view the output for a specified script, highlight the script, and click on
- the VIEW OUTPUT Button.
-
-
- ΓòÉΓòÉΓòÉ 2.6. The DataPath button ΓòÉΓòÉΓòÉ
-
- The DataPath button allows the selection of a directory where Datafiles
- necessary for the execution of scripts are located. When the DataPath button is
- pressed, a standard Directory Dialog box is presented. Any directory on any
- drive can be specified. Datafiles consist of *.WAV, *.MID, *.AVI, etc.
-
- All the datafiles must exist in the same directory. If Datafiles are spread
- among more that one directory, it is not possible to test all the scripts at
- once using the DataPath.
-
- Note for Script writers: When AP2 executes P2String, it passes it an
- environment Variable AP2PATH which the script writer will use when specifying a
- datafile. If the file TEST.WAV is to be used, it would appear as follows:
- ?AP2PATH?TEST.WAV with no spaces between the question mark and the filename.
-
-
- ΓòÉΓòÉΓòÉ 3. Data Structure ΓòÉΓòÉΓòÉ
-
- After Installing AP2, the Data Structure would appear as follows:
-
- AP2\
- SCRIPTS\
- OUT\
-
- The AP2 Directory contains all files necessary for execution. All the P2String
- scripts will be located in the SCRIPTS subdirectory. All output files that are
- created during the execution of AP2, will be stored in the OUT subdirectory.
-
- If AP2 was installed from the DDK CDROM, the DATA files will be located in the
- following Directory:
-
- \DDK\TESTX86\TESTCERT\MMEDIA\SYSTEM\AP2\DATA\
-
- The DataPath Button should be set to this directory. This will allow AP2 to
- locate the Datafiles necessary for the successful execution of the P2String
- Scripts.
-
-
- ΓòÉΓòÉΓòÉ 4. Test Case Output ΓòÉΓòÉΓòÉ
-
- The P2String output files have the same name as the test cases, but have the
- extension ".OUT". They are located in the OUT subdirectory. Subsequent
- execution of the same test case will overwrite the old ".OUT" file
-
- Delete unnecessary output files at any time.
-
- RECORD test cases will save wave files in a file called "DELETE.WAV". Video
- RECORD will save files called "DELETE.AVI". These files will be overwritten by
- subsequent RECORD test cases. The "DELETE.WAV" and the "DELETE.AVI" files can
- be erased at any time
-
- Note that a test case that says Error is not necessarily failing. Test cases
- with the text "FAILED" are not working correctly.
-
-
- ΓòÉΓòÉΓòÉ 5. The Description File ΓòÉΓòÉΓòÉ
-
- AP2 Uses a file P2S_DESC.TXT to read in the descriptions for the P2String
- scripts in the SCRIPTS subdirectory. Each description is to be on only one
- line. The format for the file is the script filename followed by a ":"
- followed by a description. If the description is over 256 characters, it will
- be trimmed to 256, or the maximum length available to the Window. An example
- of a description file follows:
-
- A______1.P2S : Ampmix Test #1
- A______2.P2S : Ampmix Test #2
-
- If there is no matching description for a test script, the script will be
- shown, but without a description. If the P2S_DESC.TXT file does not exist,
- there will be no descriptions for the test scripts.
-
-
- ΓòÉΓòÉΓòÉ 6. Error Messages ΓòÉΓòÉΓòÉ
-
- The following is a list of all error messages the program generates:
-
- o Help Not Available. This error message appears if the AP2.HLP file is
- missing
-
-
- o Help Terminated Due to Error. This error message appears if the program
- encounters an error while loading the help file
-
-
- o Unable to create file: CAPABLTY.TXT. This error message appears if the
- program can not create the named file. This could happen if you were trying
- to run the program from a read-only medium
-
-
- o Could not find test cases. This error message appears if no test cases were
- found in the SCRIPTS subdirectory. Test cases have a ".P2S" extension
-
-
- o Device driver does not support test cases. This error message appears if the
- program determines that none of the available test cases are supported by the
- device driver
-
-
- o Error Opening AP2.INI, file not found. This error message appears if the
- AP2.INI file can not be found in the current directory
-
-
- o Error Reading AP2.INI. This error message appears if an error occurred while
- reading from the AP2.INI file. Restore the AP2.INI file from your original
- disk.
-
-
- o Error writing AP2.INI. This error message appears when the program is trying
- to update the settings for AP2. This could happen if you were trying to run
- the program on a read-only medium.
-
-
- o DataPath is Invalid. Please choose a new one. This error message appears if
- the DataPath is invalid. You will be prompted to select a new DataPath after
- selecting OK.
-
-
- o No DataPath specified. Press ENTER to quit AP2. This error message appears
- if there was an invalid DataPath, and a valid one was not chosen.
-
-
- o Memory Allocation Error. You should probably close your apps and shutdown
- your system when you see this message
-
-
- o Error starting P2STRING. This error message appears when P2String.EXE can
- not be found on the path
-
-
- o Error opening file filename. This error message appears when the program
- fails to open the named output file
-
-
- o Error reading file filename. This error message appears when the program
- fails to read the named output file
-
-
- o Error closing file filename. This error message appears when the program
- fails to close the named output file
-
-
- o Error starting the Editor. This error message appears when the program can
- not find the standard editor
-
-
- ΓòÉΓòÉΓòÉ 7. P2String ΓòÉΓòÉΓòÉ
-
- P2String script processing tool is used to test the mci (media control
- interface) string commands in the MMPM/2 environment.
-
- You can find information on P2String in the .INF file that comes with the
- P2String tool. For more information on P2String, refer to the MMPM/2 Device
- Driver Source Kit for OS/2 or the Multimedia Presentation Manager Toolkit/2
- Subsystem Development Guide manuals.
-
-
- ΓòÉΓòÉΓòÉ 8. CDXA ΓòÉΓòÉΓòÉ
-
- CDXA test cases require path and filename information. Before running any of
- the test cases for the first time, use an editor to fill-in that information.
- CDXA test cases start with an X and have a .P2S extension. The CDXA test cases
- clearly indicate where to change this information
-
- Please note that CDXA test cases will fail (or not be available) if the audio
- card does not support AVC ADPCM wave audio format